package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.BeltUseHistoryMapper;
import com.ruoyi.control.domain.BeltUseHistory;
import com.ruoyi.control.service.IBeltUseHistoryService;

/**
 * 皮带操作历史Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class BeltUseHistoryServiceImpl extends ServiceImpl<BeltUseHistoryMapper, BeltUseHistory> implements IBeltUseHistoryService //修改
{
    @Autowired
    private BeltUseHistoryMapper beltUseHistoryMapper;

    /**
     * 查询皮带操作历史
     * 
     * @param id 皮带操作历史主键
     * @return 皮带操作历史
     */
    @Override
    public BeltUseHistory selectBeltUseHistoryById(String id)
    {
        return beltUseHistoryMapper.selectBeltUseHistoryById(id);
    }

    /**
     * 查询皮带操作历史列表
     * 
     * @param beltUseHistory 皮带操作历史
     * @return 皮带操作历史
     */
    @Override
    public List<BeltUseHistory> selectBeltUseHistoryList(BeltUseHistory beltUseHistory)
    {
        return beltUseHistoryMapper.selectBeltUseHistoryList(beltUseHistory);
    }

    /**
     * 新增皮带操作历史
     * 
     * @param beltUseHistory 皮带操作历史
     * @return 结果
     */
    @Override
    public int insertBeltUseHistory(BeltUseHistory beltUseHistory)
    {
        return beltUseHistoryMapper.insertBeltUseHistory(beltUseHistory);
    }

    /**
     * 修改皮带操作历史
     * 
     * @param beltUseHistory 皮带操作历史
     * @return 结果
     */
    @Override
    public int updateBeltUseHistory(BeltUseHistory beltUseHistory)
    {
        return beltUseHistoryMapper.updateBeltUseHistory(beltUseHistory);
    }

    /**
     * 批量删除皮带操作历史
     * 
     * @param ids 需要删除的皮带操作历史主键
     * @return 结果
     */
    @Override
    public int deleteBeltUseHistoryByIds(String[] ids)
    {
        return beltUseHistoryMapper.deleteBeltUseHistoryByIds(ids);
    }

    /**
     * 删除皮带操作历史信息
     * 
     * @param id 皮带操作历史主键
     * @return 结果
     */
    @Override
    public int deleteBeltUseHistoryById(String id)
    {
        return beltUseHistoryMapper.deleteBeltUseHistoryById(id);
    }
}
